<html>
<head><meta charset="utf-8"><title>newtype avoids &quot;function pointers in const fn are unstable”? · t-compiler/const-eval · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/index.html">t-compiler/const-eval</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/newtype.20avoids.20.22function.20pointers.20in.20const.20fn.20are.20unstable.E2.80.9D.3F.html">newtype avoids &quot;function pointers in const fn are unstable”?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="201220741"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/newtype%20avoids%20%22function%20pointers%20in%20const%20fn%20are%20unstable%E2%80%9D%3F/near/201220741" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/newtype.20avoids.20.22function.20pointers.20in.20const.20fn.20are.20unstable.E2.80.9D.3F.html#201220741">(Jun 18 2020 at 01:47)</a>:</h4>
<p><a href="https://stackoverflow.com/q/62440982/155423">Why do I get the error “function pointers in const fn are unstable” but it goes away when wrapped in a newtype?</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>